package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 权限实体类
 * @author Zchaolin
 * @version 1.0
 * @created 29-7月-2022 9:34:35
 */
@TableName("t_power")
public class PowerBean {
	/**
	 * 编号
	 */
	@TableId(value = "pk_powerId",type = IdType.AUTO)
	private Integer id;
	/**
	 * 权限名
	 */
	@TableField("p_name")
	private String name;

	public PowerBean(){

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "PowerBean{" +
				"id=" + id +
				", name='" + name + '\'' +
				'}'+"\n";
	}
}